package cn.fch.gotrip.service;

import cn.fch.gotrip.entity.Travel;
import cn.fch.gotrip.entity.TravelActivity;
import cn.fch.gotrip.entity.TravelTheme;
import cn.fch.gotrip.entity.TravelWay;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

/**
 * @program: gotrip
 * @description:
 * @CreatedBy: fch
 * @create: 2023-01-16 00:01
 **/
public interface TravelService {
    boolean addTravel(Travel travel);

    boolean deleteTravel(Integer id);

    boolean updateTravel(Travel travel);

    String updateImg(String id, MultipartFile file, HttpServletRequest request) throws IOException;

    PageInfo<Travel> queryAllTravel(Integer pageNum, Integer pageSize);

    PageInfo<Travel> queryAllTravelByThemeId(Integer themeId, Integer pageNum, Integer pageSize);

    List<TravelTheme> queryAllTheme();

    List<TravelActivity> queryAllActivity();

    List<TravelWay> queryAllWay();
}
